package cn.kgc.dao;

import cn.kgc.pojo.Dealer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DealerMapper {

    //查询经销商
    public List<Dealer> queryAllDealer(@Param("dealerName")String dealerName,@Param("dealerCode") String dealerCode);

    //修改经销商
    public Integer updateDealer(Dealer dealer);

    //添加经销商
    public Integer addDealer(Dealer dealer);

    //查询指定经销商
    public Dealer queryByIdDealer(@Param("id")String id);

    //经销商无效化
    public Integer deleteDealer(@Param("dealerId")String dealerId);
}
